package com.gxxy.spring.kp02_modules.cls03_annotation.s1_di.s1_setter;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration
public class SetterDIBeanTest {
		
	@Autowired
	ApplicationContext appCtx;
	
	@Test
	public void testSetterDI() throws Exception {
		ISetterDIBean bean = appCtx.getBean("testSetterDIBean", ISetterDIBean.class);
		System.out.println(bean);
	}
	
}
